package com.amphiprion.prototype;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.view.View;

import com.amphiprion.prototype.control.ControlerState;

public abstract class GameScreen {
	private Context context;
	private View view;

	public GameScreen(Context context) {
		this.context = context;
	}

	public Context getContext() {
		return context;
	}

	public abstract void onInput(ControlerState state, long elpased);

	public abstract void onDraw(Canvas canvas);

	public abstract void onDestroy();

	public Resources getResources() {
		return context.getResources();
	}

	public int getWidth() {
		return view.getWidth();
	}

	public int getHeight() {
		return view.getHeight();
	}

	public void setView(View view) {
		this.view = view;
	}

}
